<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/4/1
 * Time: 10:12
 */

namespace EasyTiktokSdk\Kernel\Contracts;

use Psr\Http\Message\RequestInterface;

interface AccessTokenInterface
{
    /**
     * @return array
     */
    public function getToken();

    /**
     * @return self
     */
    public function refresh();

    /**
     * @param array $token
     *
     * @return void
     */
    public function setToken(array $token);

    /**
     * @param array $prams
     *
     * @return void
     */
    public function applyToRequest(&$prams);
}